package com.ryskoo.catering.orderappraise.domain;

import com.ryskoo.common.hclconstant.AppraiseStateEnum;
import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 订单评价
 * 
 * @author hh
 */
@Entity
@Table(name = "cater_order_appraise")
public class OrderAppraisePO extends BasicPO {

	private static final long serialVersionUID = 302160148108221114L;

	/* 订单uuid */
    @Column(name = "order_uuid", length = 32)
    private String orderUuid;
    
    /* 订单编号 */
    @Column(name = "order_no", length = 32)
    private String orderNo;

    /* 会员uuid */
    @Column(name = "customer_uuid", length = 32)
    private String customerUuid;
    
    /* 会员名称 */
    @Column(name = "customer_name", length = 50)
    private String customerName;
    
    /* 商户uuid */
    @Column(name = "vendor_uuid", length = 32)
    private String vendorUuid;
    
    /* 评分 */
    @Column(name = "score")
    private int score;
    
    /* 评价内容 */
    @Column(name = "content", length = 256)
    private String content;
    
    /* 审核状态 */
    @Column(name = "audit_state", columnDefinition = "tinyint")
    private String auditState;
    
    /* 审核时间 */
    @Column(name = "audit_time", length = 19)
    private String auditTime;
    
    /* 评价图片1 */
    @Column(name = "pic1", length = 200)
    private String pic1;
    
    /* 评价图片2 */
    @Column(name = "pic2", length = 200)
    private String pic2;
    
    /* 评价图片3 */
    @Column(name = "pic3", length = 200)
    private String pic3;
    
    /* 评价图片4 */
    @Column(name = "pic4", length = 200)
    private String pic4;
    
    /* 评价图片5 */
    @Column(name = "pic5", length = 200)
    private String pic5;

    /* 商户回复信息 */
    @Column(name = "reply_content", length = 200)
    private String replyContent;
    
    /* 审核状态 - 中文名 */
    @Transient
    private String auditStateName;
    
    public String getAuditStateName() {
		return AppraiseStateEnum.getNameByValue(this.auditState);
	}

	public void setAuditStateName(String auditStateName) {
		this.auditStateName = auditStateName;
	}
    
	public String getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

	public String getOrderUuid() {
		return orderUuid;
	}

	public void setOrderUuid(String orderUuid) {
		this.orderUuid = orderUuid;
	}

	public String getCustomerUuid() {
		return customerUuid;
	}

	public void setCustomerUuid(String customerUuid) {
		this.customerUuid = customerUuid;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getVendorUuid() {
		return vendorUuid;
	}

	public void setVendorUuid(String vendorUuid) {
		this.vendorUuid = vendorUuid;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuditState() {
		return auditState;
	}

	public void setAuditState(String auditState) {
		this.auditState = auditState;
	}

	public String getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(String auditTime) {
		this.auditTime = auditTime;
	}

	public String getPic1() {
		return pic1;
	}

	public void setPic1(String pic1) {
		this.pic1 = pic1;
	}

	public String getPic2() {
		return pic2;
	}

	public void setPic2(String pic2) {
		this.pic2 = pic2;
	}

	public String getPic3() {
		return pic3;
	}

	public void setPic3(String pic3) {
		this.pic3 = pic3;
	}

	public String getPic4() {
		return pic4;
	}

	public void setPic4(String pic4) {
		this.pic4 = pic4;
	}

	public String getPic5() {
		return pic5;
	}

	public void setPic5(String pic5) {
		this.pic5 = pic5;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
}
